package org.locker.service;

import org.locker.common.mybatis.core.page.TableDataInfo;
import org.locker.common.mybatis.core.page.PageQuery;
import com.baomidou.mybatisplus.extension.service.IService;
import org.locker.domain.OrderStatistics;
import org.locker.domain.bo.OrderStatisticsBo;
import org.locker.domain.vo.OrderStatisticsVo;

import java.util.Collection;
import java.util.List;

/**
 * 订单统计Service接口
 *
 * @author winnie
 * @date 2024-04-29
 */
public interface IOrderStatisticsService extends IService<OrderStatistics>{

    /**
     * 查询订单统计
     */
    OrderStatisticsVo queryById(Long id);

    /**
     * 查询订单统计列表
     */
    TableDataInfo<OrderStatisticsVo> queryPageList(OrderStatisticsBo bo, PageQuery pageQuery);

    /**
     * 查询订单统计列表
     */
    List<OrderStatisticsVo> queryList(OrderStatisticsBo bo);

    /**
     * 新增订单统计
     */
    Boolean insertByBo(OrderStatisticsBo bo);

    /**
     * 修改订单统计
     */
    Boolean updateByBo(OrderStatisticsBo bo);

    /**
     * 校验并批量删除订单统计信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
